function login() {
    $.post("/demo02_userManage_war/userLogin", {
        uname: $("#uname").val(),
        pwd: $("#pwd").val(),
    }, function (res, status) {
        res = JSON.parse(res);
        let loginInfo;
        if (status === "success") {
            loginInfo = document.getElementById("loginInfo");
            if (res.success === "1") {
                loginInfo.innerHTML = res.msg;
                alert(res.msg)
                window.location = "./manage";
            } else {
                alert(res.msg)
                loginInfo.innerHTML = res.msg;
            }
        }
    })
}